<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/9/8
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>登录</title>
</head>
<body>
<h3>用户登录</h3>
<form name="" action="/login_demo/loginServlet" method="post"?>
  用户名：<input type="text" name="sname"><br/>
  密码：&nbsp&nbsp&nbsp<input type="password" name="password"><br/>
  <font color="#f00">
    <%=request.getAttribute("error")==null ?"":request.getAttribute("error")%>
  </font><br/>
  <input type="submit" name="submit1" value="登录">
</form>
</body>
</html>